import requests from "@/utils/request"

export function getBannerList(params = {}) {
  const {distributionSite = '1'} = params
    return requests({
        method: 'get',
        url: '/home/banner',
        params: {
          distributionSite: distributionSite
        }
    })
}

/**
 * @description: 获取新鲜好物
 * @param {*}
 * @return {*}
 */
export const findNew = () => {
  return requests({
    url:'/home/new'
  })
}

/**
 * @description: 获取人气推荐
 * @param {*}
 * @return {*}
 */
export const getHot = () => {
  return  requests({
    url: 'home/hot'
  })
}

/**
 * @description: 获取所有商品模块
 * @param {*}
 * @return {*}
 */
export const getGoods = () => {
  return requests({
    url: '/home/goods'
  })
}